<?php
namespace core;
defined('BY_JYA') or exit('error');
/*
	消息提醒
*/
class notice{
	public function gettpl_data($mid,$type=0){
		$account=pdo_get('core_accounts',array('uniacid'=>$_SESSION['uniacid']),array('js_support','js_supportimg','endtime','title','logo','desc','ewm','wxapp_ewm','xiu_ewm','lxr','phone','qq','mail','cname','icp','code','address','naddress','isdiy','syscolor'));
		$member=model('core/member')->detail($mid,array('credit1','credit2','mobile','avatar','nickname'));
		$datas = array(
			array('name' => '站点名称', 'value' => $account['title']),
			array('name' => '粉丝昵称', 'value' => $member['nickname']),
			array('name' => '当前时间', 'value' => date('Y/m/d H:i:s',time())),
		);
		return $datas;
	}
}
